import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const loginKey = 'User-Id'
const loginName = 'User-Name'
export function getToken() {
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}

export function setUserId(userId) {
    return Cookies.set(loginKey, userId)
}
export function getUserId() {
    return Cookies.get(loginKey)
}

export function setUserName(userName) {
    return Cookies.set(loginName, userName)
}
export function getUserName() {
    return Cookies.get(loginName)
}